home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / utils1 / al_lert.arj / ALERT.H < prev    next >
Text File  |  1994-03-02  |  1KB  |  41 lines

  1.  
  2. #define GR_ERROR 10
  3. #define SETUP_COLOR LIGHTBLUE
  4. #define LINE_BEGINNING 20
  5. #define MAXCYCLECOUNT 15
  6. #define LINE1HT 8
  7. #define LINE2HT 5
  8. #define MAXYHT 400
  9. #define DELAY 1600
  10. #define DELTA_X 140
  11. #define DELTA_Y 33
  12. #define PIXEL_COLOR YELLOW
  13. #define HEADS_OR_TAILS 2
  14. #define RANDOM 3
  15.  
  16. //when to dial ( 3 out of 15? )
  17. #define DIALPHONE 11
  18.  
  19. //Keypress to exit
  20. #define EXITVALUE '}'
  21.  
  22. #define WRITE_1ST_LINE write_text( LINE_BEGINNING, y_ht, LINE1HT, txt1 )
  23. #define WRITE_2ND_LINE write_text( LINE_BEGINNING + DELTA_X, y_ht + DELTA_Y, LINE2HT, txt2 )
  24. #define ERASE_LINE1 setcolor( getbkcolor() ); WRITE_1ST_LINE
  25. #define ERASE_LINE2 setcolor( getbkcolor() ); WRITE_2ND_LINE
  26. #define WRITE_LINE1 setcolor( line1color ); WRITE_1ST_LINE
  27. #define WRITE_LINE2 setcolor( LIGHTMAGENTA ); WRITE_2ND_LINE
  28.  
  29. const char Msg1[] = "Intrusion Alert!",
  30.        Msg2[] = "CALLING POLICE";
  31.  
  32.  
  33. typedef enum { OFF, ON } FLAGS;
  34. FLAGS SoundFlag;
  35.  
  36. /********************************prototypes*********************************/
  37.  
  38. void graphics_setup( int background_color );
  39. void write_text( int x_coord, int y_coord, int type_size, char* text );
  40. void FlashCycle();
  41.